/*
 * DarkColorSchemeMapper.java
 *
 * Copyright(c) 2011
 * Michael Kroez
 * kroez@studiorutton.de
 *
 * All rights reserved.
 *
 * $Id$
 * 
 */

package de.studiorutton.colorschemes;

import de.studiorutton.gerengdic.R;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;

public class NoFrillsColorSchemeMapper extends ColorSchemeMapper {

	public NoFrillsColorSchemeMapper(Resources res) {
		super(res);
	}

	@Override
	public void createColors() {

		lightLowContrast = new ColorCollection(
				res.getColor(R.color.black),
				res.getColor(R.color.black),
				res.getColor(R.color.black),
				res.getColor(R.color.white_smoke));

		darkLowContrast = new ColorCollection(
				res.getColor(R.color.black), 
				res.getColor(R.color.black),
				res.getColor(R.color.black),
				res.getColor(R.color.white_smoke));


		titleGradient = GradientColor.LIGHT_TO_DARK;
		resultGradient = GradientColor.DARK_TO_LIGHT;
		itemGradient = GradientColor.DARK_TO_LIGHT;

	}

	@Override
	public void setIndexedInverse(boolean inverse) {
		super.setIndexedInverse(inverse);
		if (inverse) {
			titleGradient = GradientColor.DARK_TO_LIGHT;
			resultGradient = GradientColor.LIGHT_TO_DARK;
		}
	}
	
	@Override
	public boolean isDividerSet() {
		return false;
	}
	
	@Override
	public Drawable getListDividerDrawable() {
		// does not work - don't know why - worked around this with the above function
		return res.getDrawable( R.drawable.divider_horizontal_bright_opaque );
	}

	public int getBackgroundDark() {
		return R.drawable.background_black;
	}

}
